feat: integrate claude sessions and task segmentation#307
Open
Kyle-Verhoog wants to merge 1 commit intomasterfrom
Open
feat: integrate claude sessions and task segmentation#307Kyle-Verhoog wants to merge 1 commit intomasterfrom
Kyle-Verhoog wants to merge 1 commit intomasterfrom
Conversation
Wire up SessionCache to scan ~/.claude/projects/ JSONL files and inject session events into the LLMObs span pool. Add dedicated /sessions endpoint and task segmentation API routes. Session events include slug, cwd, project, num_turns, and end_ns for sorting by recency. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
claude_sessions.py(session scanner) andtask_segmentation.py(LLM-based task analysis) into the agent appSessionCachescans~/.claude/projects/JSONL files and injects session events into the LLMObs span pool, so they appear in the Sessions view without requiring instrumentation/api/ui/llm-obs/v1/sessionsendpoint for fast session listing/api/ui/llm-obs/v1/session/{session_id}/tasksendpoint for AI-powered task segmentationslug,cwd,project,num_turns, andend_nsfor identification and sortingTest plan
from ddapm_test_agent.agent import make_app)ddapm-test-agent --port=8126starts without errorscurl -X POST http://localhost:8126/api/ui/llm-obs/v1/sessionsreturns session eventsClaude session:
da262f78-56c2-4286-a66c-bae6343d71a2Resume:
claude --resume da262f78-56c2-4286-a66c-bae6343d71a2🤖 Generated with Claude Code